package com.gxsyh.nantie.statements.management.provider.mapper;

import com.gxsyh.nantie.statements.management.provider.domain.TbDepartment;
import tk.mybatis.mapper.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.persistence.Table;
import java.util.List;




public interface TbDepartmentMapper extends MyMapper<TbDepartment> {

    List<TbDepartment> selectDepartmentAndSubordinate(@Param("type")Integer type,@Param("id")Long id,@Param("parentId")Long parentId);

    List<TbDepartment> selectDepartment(@Param("type")Integer type,@Param("parentId")Long parentId);

    List<TbDepartment> selectBelongToDepartment(@Param("parentId")Long parentId);
}